package com.atguigu.gulimall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;

/**
 * 整合mybatis-Plus
 * 1、导入mybatis-plus依赖
 * 2、配置数据源(导入数据库驱动、在application.yaml配置数据源信息) 配置mybatis-plus(使用@MapperScan)
 */

/**
 * 逻辑删除
 * 1、配置全局逻辑删除规则
 * 2、配置逻辑删除配置(已弃用)
 * 3、加上逻辑删除注解
*/

@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.atguigu.gulimall.product.feign")
@MapperScan("com.atguigu.gulimall.product.dao")
@SpringBootApplication
public class GulimallProductApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class,args);
    }
}
